package action;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.opensymphony.xwork2.ActionContext;

import basic.PageInfo;
import basic.QuerySet;
import basic.ResultSet;
import basic.SortInfo;
import common.BaseAction;
import common.CommonDict;
import dicts.PaymentDict;
import entities.TMs;
import entities.TMsm;
import entities.TSm;
import interfaces.IMsService;
import interfaces.IMsmService;
import interfaces.ISmService;
import util.ParameterUtil;
import utils.DateUtil;
import utils.ExcelUtil;
import utils.StringUtil;
import views.VMsTransaction;
import views.VSmTransaction;

public class MsmAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7507534255609348887L;

	private IMsmService msmService;

	private TMsm msmBean;
	private List<TMsm> msmList;

	private String msmNo;
	private String msmNos;
	private String msmSign;
	private String msmMer;
	private String msmTxn;
	private String msmType;
	private Double msmAmount;
	private String msmState;
	private Date msmDate;
	private Date msmDateTop;
	private Date msmDateEnd;
	private String msmRemark;

	private String txnNo;
	private String merNo;
	private String crdNo;
	private String txnName;
	private String txnOrder;
	private String txnSite;
	private String txnProduct;
	private String txnNotify;
	private String txnCur;
	private Double txnLoc;
	private Double txnRate;
	private Double txnAmount;
	private Double txnRemain;
	private String txnRefund;
	private String txnRefuse;
	private String txnFreeze;
	private String txnLogic;
	private String txnSettle;
	private String txnDanger;
	private String txnVisible;
	private String txnState;
	private Date txnDate;
	private Date txnDateTop;
	private Date txnDateEnd;
	private String txnRemark;

	private IMsService msService;
	private TMs msBean;
	private List<TMs> msList;
	private VMsTransaction msTransactionBean;
	private List<VMsTransaction> msTransactionList;
	private String msNo;
	private String msNos;
	private String msType;
	private Double msAmount;
	private String msState;
	private Date msDate;
	private Date msDateTop;
	private Date msDateEnd;
	private String msRemark;
	private Double msTotal;

	private ISmService smService;
	private TSm smBean;
	private List<TSm> smList;
	private VSmTransaction smTransactionBean;
	private List<VSmTransaction> smTransactionList;
	private String smNo;
	private String smNos;
	private String smType;
	private Double smAmount;
	private String smState;
	private Date smDate;
	private Date smDateTop;
	private Date smDateEnd;
	private String smRemark;
	private Double smTotal;

	public String showms() throws Exception {
		if (!msService.exist(msNo)) {
			addActionError("数据不存在");
			return INFO;
		} else {
			msBean = msService.fetch(msNo);
			return SUCCESS;
		}
	}

	public String showsm() throws Exception {
		if (!smService.exist(smNo)) {
			addActionError("数据不存在");
			return INFO;
		} else {
			smBean = smService.fetch(smNo);
			return SUCCESS;
		}
	}

	public String viewrefund() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("msNo", StringUtil.split(msNo));
		paramMap.put("txnDefault", ActionContext.getContext().getSession().get("query").toString());
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("msType", PaymentDict.MS_REFUND);
		paramMap.put("msAmount", msAmount);
		paramMap.put("msState", msState);
		paramMap.put("msDate", ParameterUtil.dateCombin(msDateTop, msDateEnd));
		paramMap.put("msRemark", msRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "msDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(pageIndex, pageSize));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<VMsTransaction> resultSet = msService.relate(querySet);
		msTransactionList = resultSet.getResultList();
		pageInfo = resultSet.getPageInfo();

		querySet.setPolymerizeInfo("msAmount");
		msTotal = msService.collect(querySet);
		return SUCCESS;
	}

	public String viewrefuse() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("msNo", StringUtil.split(msNo));
		paramMap.put("txnDefault", ActionContext.getContext().getSession().get("query").toString());
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("msType", PaymentDict.MS_REFUSE);
		paramMap.put("msAmount", msAmount);
		paramMap.put("msState", msState);
		paramMap.put("msDate", ParameterUtil.dateCombin(msDateTop, msDateEnd));
		paramMap.put("msRemark", msRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "msDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(pageIndex, pageSize));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<VMsTransaction> resultSet = msService.relate(querySet);
		msTransactionList = resultSet.getResultList();
		pageInfo = resultSet.getPageInfo();
		
		querySet.setPolymerizeInfo("msAmount");
		msTotal = msService.collect(querySet);
		return SUCCESS;
	}

	public String viewcharge() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("msNo", StringUtil.split(msNo));
		paramMap.put("txnDefault", ActionContext.getContext().getSession().get("query").toString());
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("msType", PaymentDict.MS_CHARGE);
		paramMap.put("msAmount", msAmount);
		paramMap.put("msState", msState);
		paramMap.put("msDate", ParameterUtil.dateCombin(msDateTop, msDateEnd));
		paramMap.put("msRemark", msRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "msDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(pageIndex, pageSize));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<VMsTransaction> resultSet = msService.relate(querySet);
		msTransactionList = resultSet.getResultList();
		pageInfo = resultSet.getPageInfo();
		
		querySet.setPolymerizeInfo("msAmount");
		msTotal = msService.collect(querySet);
		return SUCCESS;
	}

	public String viewfreeze() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("msNo", StringUtil.split(msNo));
		paramMap.put("txnDefault", ActionContext.getContext().getSession().get("query").toString());
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("msType", PaymentDict.MS_FREEZE);
		paramMap.put("msAmount", msAmount);
		paramMap.put("msState", msState);
		paramMap.put("msDate", ParameterUtil.dateCombin(msDateTop, msDateEnd));
		paramMap.put("msRemark", msRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "msDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(pageIndex, pageSize));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<VMsTransaction> resultSet = msService.relate(querySet);
		msTransactionList = resultSet.getResultList();
		pageInfo = resultSet.getPageInfo();
		
		querySet.setPolymerizeInfo("msAmount");
		msTotal = msService.collect(querySet);
		return SUCCESS;
	}

	public String viewmortgage() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("msNo", StringUtil.split(msNo));
		paramMap.put("txnDefault", ActionContext.getContext().getSession().get("query").toString());
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("msType", PaymentDict.MS_MORTGAGE);
		paramMap.put("msAmount", msAmount);
		paramMap.put("msState", msState);
		paramMap.put("msDate", ParameterUtil.dateCombin(msDateTop, msDateEnd));
		paramMap.put("msRemark", msRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "msDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(pageIndex, pageSize));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<VMsTransaction> resultSet = msService.relate(querySet);
		msTransactionList = resultSet.getResultList();
		pageInfo = resultSet.getPageInfo();
		
		querySet.setPolymerizeInfo("msAmount");
		msTotal = msService.collect(querySet);
		return SUCCESS;
	}

	public String viewmortgega() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("smNo", StringUtil.split(smNo));
		paramMap.put("txnDefault", ActionContext.getContext().getSession().get("query").toString());
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("smType", PaymentDict.SM_MORTGAGE);
		paramMap.put("smAmount", smAmount);
		paramMap.put("smState", smState);
		paramMap.put("smDate", ParameterUtil.dateCombin(smDateTop, smDateEnd));
		paramMap.put("smRemark", smRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "smDate" : sortField);
		sortInfo.setSortOrder(new Boolean(true));

		querySet.setPageInfo(new PageInfo(pageIndex, pageSize));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<VSmTransaction> resultSet = smService.relate(querySet);
		smTransactionList = resultSet.getResultList();
		pageInfo = resultSet.getPageInfo();
		
		querySet.setPolymerizeInfo("smAmount");
		smTotal = smService.collect(querySet);
		return SUCCESS;
	}

	public String exportms() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("msNo", StringUtil.split(msNo));
		paramMap.put("merNo", merNo);
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("txnOrder", txnOrder);
		paramMap.put("txnSite", txnSite);
		paramMap.put("txnDate", ParameterUtil.dateCombin(txnDateTop, txnDateEnd));
		paramMap.put("msType", msType);
		paramMap.put("msAmount", msAmount);
		paramMap.put("msState", msState);
		paramMap.put("msDate", ParameterUtil.dateCombin(msDateTop, msDateEnd));
		paramMap.put("msRemark", msRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "msDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(1, CommonDict.EXPORT_LIMIT));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<TMs> resultSet = msService.search(querySet);
		msList = resultSet.getResultList();

		List<String> fieldHead = new ArrayList<String>();
		fieldHead.add("编号");
		fieldHead.add("关联商户号");
		fieldHead.add("关联交易号");
		fieldHead.add("类型");
		fieldHead.add("付款金额");
		fieldHead.add("状态");
		fieldHead.add("发生日期日期");
		fieldHead.add("发生日期时间");
		fieldHead.add("备注");

		List<List<String>> fieldData = new ArrayList<List<String>>();

		for (TMs msBean : msList) {
			List<String> fieldItem = new ArrayList<String>();
			fieldItem.add(msBean.getMsNo());
			fieldItem.add(msBean.getMerNo());
			fieldItem.add(msBean.getTxnNo());
			fieldItem.add(msBean.getMsType());
			fieldItem.add(msBean.getMsAmount().toString());
			fieldItem.add((msBean.getMsState().equals("0")) ? "无效" : "有效");
			fieldItem.add(DateUtil.format(msBean.getMsDate(), DateUtil.DATE));
			fieldItem.add(DateUtil.format(msBean.getMsDate(), DateUtil.TIME));
			fieldItem.add(msBean.getMsRemark());

			fieldData.add(fieldItem);
		}

		inputStream = ExcelUtil.excel(fieldHead, fieldData);
		return SUCCESS;
	}

	public String exportsm() throws Exception {
		QuerySet<Object> querySet = new QuerySet<Object>();

		HashMap<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("smNo", StringUtil.split(smNo));
		paramMap.put("merNo", merNo);
		paramMap.put("txnNo", StringUtil.split(txnNo));
		paramMap.put("smType", smType);
		paramMap.put("smAmount", smAmount);
		paramMap.put("smState", smState);
		paramMap.put("smDate", ParameterUtil.dateCombin(smDateTop, smDateEnd));
		paramMap.put("smRemark", smRemark);

		SortInfo sortInfo = new SortInfo();
		sortInfo.setSortField((StringUtil.isEmpty(sortField)) ? "smDate" : sortField);
		sortInfo.setSortOrder(sortOrder);

		querySet.setPageInfo(new PageInfo(1, CommonDict.EXPORT_LIMIT));
		querySet.setSortInfo(sortInfo);
		querySet.setParamMap(paramMap);

		ResultSet<TSm> resultSet = smService.search(querySet);
		smList = resultSet.getResultList();

		List<String> fieldHead = new ArrayList<String>();
		fieldHead.add("编号");
		fieldHead.add("关联商户号");
		fieldHead.add("关联交易号");
		fieldHead.add("类型");
		fieldHead.add("金额");
		fieldHead.add("状态");
		fieldHead.add("发生日期日期");
		fieldHead.add("发生日期时间");
		fieldHead.add("备注");

		List<List<String>> fieldData = new ArrayList<List<String>>();

		for (TSm smBean : smList) {
			List<String> fieldItem = new ArrayList<String>();
			fieldItem.add(smBean.getSmNo());
			fieldItem.add(smBean.getMerNo());
			fieldItem.add(smBean.getTxnNo());
			fieldItem.add(smBean.getSmType());
			fieldItem.add(smBean.getSmAmount().toString());
			fieldItem.add((smBean.getSmState().equals("0")) ? "无效" : "有效");
			fieldItem.add(DateUtil.format(smBean.getSmDate(), DateUtil.DATE));
			fieldItem.add(DateUtil.format(smBean.getSmDate(), DateUtil.TIME));
			fieldItem.add(smBean.getSmRemark());

			fieldData.add(fieldItem);
		}

		inputStream = ExcelUtil.excel(fieldHead, fieldData);
		return SUCCESS;
	}

	////////////////////// ---------------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////
	////////////////////// ---------------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////
	////////////////////// ---------------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////

	public String getMerNo() {
		return merNo;
	}

	public void setMerNo(String merNo) {
		this.merNo = merNo;
	}

	public String getTxnNo() {
		return txnNo;
	}

	public void setTxnNo(String txnNo) {
		this.txnNo = txnNo;
	}

	public IMsmService getMsmService() {
		return msmService;
	}

	public void setMsmService(IMsmService msmService) {
		this.msmService = msmService;
	}

	public TMsm getMsmBean() {
		return msmBean;
	}

	public void setMsmBean(TMsm msmBean) {
		this.msmBean = msmBean;
	}

	public List<TMsm> getMsmList() {
		return msmList;
	}

	public void setMsmList(List<TMsm> msmList) {
		this.msmList = msmList;
	}

	public String getMsmNo() {
		return msmNo;
	}

	public void setMsmNo(String msmNo) {
		this.msmNo = msmNo;
	}

	public String getMsmNos() {
		return msmNos;
	}

	public void setMsmNos(String msmNos) {
		this.msmNos = msmNos;
	}

	public String getMsmSign() {
		return msmSign;
	}

	public void setMsmSign(String msmSign) {
		this.msmSign = msmSign;
	}

	public String getMsmMer() {
		return msmMer;
	}

	public void setMsmMer(String msmMer) {
		this.msmMer = msmMer;
	}

	public String getMsmTxn() {
		return msmTxn;
	}

	public void setMsmTxn(String msmTxn) {
		this.msmTxn = msmTxn;
	}

	public String getMsmType() {
		return msmType;
	}

	public void setMsmType(String msmType) {
		this.msmType = msmType;
	}

	public Double getMsmAmount() {
		return msmAmount;
	}

	public void setMsmAmount(Double msmAmount) {
		this.msmAmount = msmAmount;
	}

	public String getMsmState() {
		return msmState;
	}

	public void setMsmState(String msmState) {
		this.msmState = msmState;
	}

	public Date getMsmDate() {
		return msmDate;
	}

	public void setMsmDate(Date msmDate) {
		this.msmDate = msmDate;
	}

	public Date getMsmDateTop() {
		return msmDateTop;
	}

	public void setMsmDateTop(Date msmDateTop) {
		this.msmDateTop = msmDateTop;
	}

	public Date getMsmDateEnd() {
		return msmDateEnd;
	}

	public void setMsmDateEnd(Date msmDateEnd) {
		this.msmDateEnd = msmDateEnd;
	}

	public String getMsmRemark() {
		return msmRemark;
	}

	public void setMsmRemark(String msmRemark) {
		this.msmRemark = msmRemark;
	}

	public IMsService getMsService() {
		return msService;
	}

	public void setMsService(IMsService msService) {
		this.msService = msService;
	}

	public TMs getMsBean() {
		return msBean;
	}

	public void setMsBean(TMs msBean) {
		this.msBean = msBean;
	}

	public List<TMs> getMsList() {
		return msList;
	}

	public void setMsList(List<TMs> msList) {
		this.msList = msList;
	}

	public String getMsNo() {
		return msNo;
	}

	public void setMsNo(String msNo) {
		this.msNo = msNo;
	}

	public String getMsNos() {
		return msNos;
	}

	public void setMsNos(String msNos) {
		this.msNos = msNos;
	}

	public String getMsType() {
		return msType;
	}

	public void setMsType(String msType) {
		this.msType = msType;
	}

	public Double getMsAmount() {
		return msAmount;
	}

	public void setMsAmount(Double msAmount) {
		this.msAmount = msAmount;
	}

	public String getMsState() {
		return msState;
	}

	public void setMsState(String msState) {
		this.msState = msState;
	}

	public Date getMsDate() {
		return msDate;
	}

	public void setMsDate(Date msDate) {
		this.msDate = msDate;
	}

	public Date getMsDateTop() {
		return msDateTop;
	}

	public void setMsDateTop(Date msDateTop) {
		this.msDateTop = msDateTop;
	}

	public Date getMsDateEnd() {
		return msDateEnd;
	}

	public void setMsDateEnd(Date msDateEnd) {
		this.msDateEnd = msDateEnd;
	}

	public String getMsRemark() {
		return msRemark;
	}

	public void setMsRemark(String msRemark) {
		this.msRemark = msRemark;
	}

	public ISmService getSmService() {
		return smService;
	}

	public void setSmService(ISmService smService) {
		this.smService = smService;
	}

	public TSm getSmBean() {
		return smBean;
	}

	public void setSmBean(TSm smBean) {
		this.smBean = smBean;
	}

	public List<TSm> getSmList() {
		return smList;
	}

	public void setSmList(List<TSm> smList) {
		this.smList = smList;
	}

	public String getSmNo() {
		return smNo;
	}

	public void setSmNo(String smNo) {
		this.smNo = smNo;
	}

	public String getSmNos() {
		return smNos;
	}

	public void setSmNos(String smNos) {
		this.smNos = smNos;
	}

	public String getSmType() {
		return smType;
	}

	public void setSmType(String smType) {
		this.smType = smType;
	}

	public Double getSmAmount() {
		return smAmount;
	}

	public void setSmAmount(Double smAmount) {
		this.smAmount = smAmount;
	}

	public String getSmState() {
		return smState;
	}

	public void setSmState(String smState) {
		this.smState = smState;
	}

	public Date getSmDate() {
		return smDate;
	}

	public void setSmDate(Date smDate) {
		this.smDate = smDate;
	}

	public Date getSmDateTop() {
		return smDateTop;
	}

	public void setSmDateTop(Date smDateTop) {
		this.smDateTop = smDateTop;
	}

	public Date getSmDateEnd() {
		return smDateEnd;
	}

	public void setSmDateEnd(Date smDateEnd) {
		this.smDateEnd = smDateEnd;
	}

	public String getSmRemark() {
		return smRemark;
	}

	public void setSmRemark(String smRemark) {
		this.smRemark = smRemark;
	}

	public String getCrdNo() {
		return crdNo;
	}

	public void setCrdNo(String crdNo) {
		this.crdNo = crdNo;
	}

	public String getTxnName() {
		return txnName;
	}

	public void setTxnName(String txnName) {
		this.txnName = txnName;
	}

	public String getTxnOrder() {
		return txnOrder;
	}

	public void setTxnOrder(String txnOrder) {
		this.txnOrder = txnOrder;
	}

	public String getTxnSite() {
		return txnSite;
	}

	public void setTxnSite(String txnSite) {
		this.txnSite = txnSite;
	}

	public String getTxnProduct() {
		return txnProduct;
	}

	public void setTxnProduct(String txnProduct) {
		this.txnProduct = txnProduct;
	}

	public String getTxnNotify() {
		return txnNotify;
	}

	public void setTxnNotify(String txnNotify) {
		this.txnNotify = txnNotify;
	}

	public String getTxnCur() {
		return txnCur;
	}

	public void setTxnCur(String txnCur) {
		this.txnCur = txnCur;
	}

	public Double getTxnLoc() {
		return txnLoc;
	}

	public void setTxnLoc(Double txnLoc) {
		this.txnLoc = txnLoc;
	}

	public Double getTxnRate() {
		return txnRate;
	}

	public void setTxnRate(Double txnRate) {
		this.txnRate = txnRate;
	}

	public Double getTxnAmount() {
		return txnAmount;
	}

	public void setTxnAmount(Double txnAmount) {
		this.txnAmount = txnAmount;
	}

	public Double getTxnRemain() {
		return txnRemain;
	}

	public void setTxnRemain(Double txnRemain) {
		this.txnRemain = txnRemain;
	}

	public String getTxnRefund() {
		return txnRefund;
	}

	public void setTxnRefund(String txnRefund) {
		this.txnRefund = txnRefund;
	}

	public String getTxnRefuse() {
		return txnRefuse;
	}

	public void setTxnRefuse(String txnRefuse) {
		this.txnRefuse = txnRefuse;
	}

	public String getTxnFreeze() {
		return txnFreeze;
	}

	public void setTxnFreeze(String txnFreeze) {
		this.txnFreeze = txnFreeze;
	}

	public String getTxnLogic() {
		return txnLogic;
	}

	public void setTxnLogic(String txnLogic) {
		this.txnLogic = txnLogic;
	}

	public String getTxnSettle() {
		return txnSettle;
	}

	public void setTxnSettle(String txnSettle) {
		this.txnSettle = txnSettle;
	}

	public String getTxnDanger() {
		return txnDanger;
	}

	public void setTxnDanger(String txnDanger) {
		this.txnDanger = txnDanger;
	}

	public String getTxnVisible() {
		return txnVisible;
	}

	public void setTxnVisible(String txnVisible) {
		this.txnVisible = txnVisible;
	}

	public String getTxnState() {
		return txnState;
	}

	public void setTxnState(String txnState) {
		this.txnState = txnState;
	}

	public Date getTxnDate() {
		return txnDate;
	}

	public void setTxnDate(Date txnDate) {
		this.txnDate = txnDate;
	}

	public Date getTxnDateTop() {
		return txnDateTop;
	}

	public void setTxnDateTop(Date txnDateTop) {
		this.txnDateTop = txnDateTop;
	}

	public Date getTxnDateEnd() {
		return txnDateEnd;
	}

	public void setTxnDateEnd(Date txnDateEnd) {
		this.txnDateEnd = txnDateEnd;
	}

	public String getTxnRemark() {
		return txnRemark;
	}

	public void setTxnRemark(String txnRemark) {
		this.txnRemark = txnRemark;
	}

	public VMsTransaction getMsTransactionBean() {
		return msTransactionBean;
	}

	public void setMsTransactionBean(VMsTransaction msTransactionBean) {
		this.msTransactionBean = msTransactionBean;
	}

	public List<VMsTransaction> getMsTransactionList() {
		return msTransactionList;
	}

	public void setMsTransactionList(List<VMsTransaction> msTransactionList) {
		this.msTransactionList = msTransactionList;
	}

	public VSmTransaction getSmTransactionBean() {
		return smTransactionBean;
	}

	public void setSmTransactionBean(VSmTransaction smTransactionBean) {
		this.smTransactionBean = smTransactionBean;
	}

	public List<VSmTransaction> getSmTransactionList() {
		return smTransactionList;
	}

	public void setSmTransactionList(List<VSmTransaction> smTransactionList) {
		this.smTransactionList = smTransactionList;
	}

	public Double getMsTotal() {
		return msTotal;
	}

	public void setMsTotal(Double msTotal) {
		this.msTotal = msTotal;
	}

	public Double getSmTotal() {
		return smTotal;
	}

	public void setSmTotal(Double smTotal) {
		this.smTotal = smTotal;
	}

}
